extends ./index.jade
include ./includes/modal.jade
include ./includes/modal2.jade

block content
	.rightSide
		.container-fluid
			.row
				.col-sm-8.col-sm-offset-2.col-md-6.col-md-offset-2
					form.form-horizontal#addSchoolForm
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|省
							.col-sm-9
								select.form-control#provinceSelect(name='province_id' required)
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|市
							.col-sm-9
								select.form-control#citySelect(name='city_id' required)
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|区
							.col-sm-9
								select.form-control#districtSelect(name='area_id' required)
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|学校名称
							.col-sm-9
								input(type='text' id='school_name' name='school_name' required).form-control
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|学校地址
							.col-sm-9
								input(type='text' id='school_address' name='school_adress' required).form-control
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|学校经度
							.col-sm-9
								input(type='number' id='school_longtitude' name='coord_lng' required).form-control
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|学校纬度
							.col-sm-9
								input(type='number' id='school_altitude' name='coord_lat' required).form-control
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|有赞id
							.col-sm-9
								input(type='text' id='app_id' name='appid' required).form-control
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|有赞秘钥
							.col-sm-9
								input(type='text' id='app_secret' name='appsecret' required).form-control
						.form-group
							label.col-sm-3.text-right.control-label
								span.text-danger *
								|有赞门店id
							.col-sm-9
								input(type='text' id='youzan_store_id' name='youzan_store_id' required).form-control
						.form-group.text-center
							hr
							.col-sm-offset-3
								a.btn.btn-default(onclick='history.go(-1)') 返回
								a.btn.btn-success#addSchool确定
	
	script(src='/js/lib/require.js' data-main='/js/add_school')